package org.example.contestb.entity;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ExcelIgnoreUnannotated
@TableName("tb_bp")
public class BP {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "patient_id")
    private Integer patientId;

    @TableField(value = "bp_date")
    @ExcelProperty("血压测量日期")
    private Date bpDate;

    @TableField(value = "bp_time")
    @ExcelProperty("血压测量时间")
    private Date bpTime;

    @TableField(value = "bp_value")
    @ExcelProperty("血压测量值")
    private String bpValue;

    @TableField(value = "bp_remark")
    @ExcelProperty("备注")
    private String bpRemark;
}
